<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
echo "<title>".$title_for_layout."</title>";

echo $html->css('template');
echo $html->css('jquery-ui-1.8.9.custom');
echo $html->script('jquery');
echo $html->script('jquery.blockUI');
echo $html->script('jquery-ui-1.8.9.custom.min');
echo $html->script('jquery.validate.pack');

echo $scripts_for_layout;
?>
<script>
    $(document).ajaxStart(function(){$('#content').block({message:'Please wait...'});});           
    $(document).ajaxStop(function(){$('#content').unblock();});
</script>
</head>

<body>
<div id="page_bg">
<div id="header">
<div id="wrapper">
<table cellspacing="0" cellpadding="0" class="logo">
<tbody><tr>
<td>
<h1><a href="<?php echo $this->webroot;?>"><?php echo $title_for_layout; ?></a></h1>
</td>
</tr>
</tbody></table>
</div>
</div>

<div class="content_middle_bg">
<div class="content_top_bg">
<div class="content_bottom_bg">
<!-- <div id="top_menu">
<ul id="mainlevel-nav">
</ul>	
</div>
-->

<div><div class="clr"></div></div>

<div class="blog" id="content">
<?php echo $content_for_layout; ?>
</div>

</div>
</div>
</div>

<?php echo $this->element('sql_dump'); ?>
<?php echo $this->Js->writeBuffer(); ?>
</div>
<div id="footer"></div>
</body>
